package com.bdqn.t382.pojo;

import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

public class Electron implements java.io.Serializable {
    private Integer id;    //编号
    private String type;    //型号
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createdTime;    //出厂日期
    private BigDecimal price;    //出厂价格

    public Electron() {

    }

    public Electron(Integer id, String type, Date createdTime, BigDecimal price) {
        this.id = id;
        this.type = type;
        this.createdTime = createdTime;
        this.price = price;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "Electron{" +
                "id=" + id +
                ", type='" + type + '\'' +
                ", createdTime=" + createdTime +
                ", price=" + price +
                '}';
    }
}
